import React from 'react';

const { useState, useEffect } = React;

function Content() {
    console.debug('Content rendered!');

    const [name, changeName] = useState('1');

    useEffect(() => {
        setTimeout(() => {
            changeName('2');
        }, 2000);
    }, []);

    return (
        <div>{name}</div>
    );
}

export default Content;
